from django.http import HttpResponse
from django.template.loader import get_template  
from django.template import Context

from company.product.models import *
def index(request):
    news = New.objects.all()[:3]
    t = get_template('index.html')
    #html = t.render(Context({'current_date': now})) 
    html = t.render( Context( {'latest_news':news} ) )
    return HttpResponse(html)

def test(request):
    print request.GET['page']
    return HttpResponse('hello world')
